package com.xhwl.logistics.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.sdata.Account;
import com.xhwl.common.pojo.cent.vehicle.VehcParkingLot;
import com.xhwl.common.query.cent.vehicle.ParkingLotQuery;
import com.xhwl.common.vo.cent.vehicle.ParkingLotVO;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lu.Aaron
 * @since 2021-02-08
 */
//@RestController
public interface IVehcParkingLotService extends IService<VehcParkingLot> {
    @RequestMapping(value = "/parkingLot-service/add", method = RequestMethod.POST)
    void add(@RequestPart("parkingLotVO") ParkingLotVO parkingLotVO, Account account, Short industryId);

    @RequestMapping(value = "/parkingLot-service/update", method = RequestMethod.POST)
    void edit(@RequestPart("parkingLotVO") ParkingLotVO parkingLotVO, Account account, Short industryId);

    @RequestMapping(value = "/parkingLot-service/delete", method = RequestMethod.POST)
    void delete(@RequestParam("id") Integer id, Short industryId);

    @RequestMapping(value = "/parkingLot-service/page", method = RequestMethod.POST)
    Page<VehcParkingLot> parkingLotPage(@RequestPart("parkingLotQuery")ParkingLotQuery parkingLotQuery);

    @RequestMapping(value = "/parkingLot-service/list", method = RequestMethod.GET)
    List<VehcParkingLot> list(@RequestPart ParkingLotQuery parkingLotQuery);

    /**
     * 根据项目id获取第三方的车场id
     */
    @RequestMapping(value = "/parkingLot-service/get-park-id")
    ResultJson getParkIdByProjectId(Integer projectId);



}
